/*
 * Copyright 2015-2016 Imply Data, Inc.
 * Copyright 2017-2019 Allegro.pl
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../lib/style/reset';
@import '../../lib/style/sanity';
@import '../../lib/style/open-sans-regular';
@import '../../lib/style/open-sans-600';
@import 'imports';

html,
body {
  @include css-variable(color, text-default-color);
  height: 100%;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 13px;
  overflow: hidden;
}

svg {
  width: auto;
  height: auto;
}

.app-container {
  @include pin-full;

  * {
    user-select: none;
  }

  // Pin my loader
  & > .loader {
    @include pin-full;
  }
}

.drag-ghost {
  @include css-variable(background-color, dark);
  // Do not change these position things
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;

  margin: 10px;
  padding: 4px 8px;
  color: $white;
  border-radius: 3px;
}

//.drag-mask { // uncomment if you want to see the drag masks
//  background: $brand;
//  opacity: 0.2;
//}

:root {
  @each $var, $val in $theme-colors {
    #{'--' + $var}: #{$val};
  }
}
